package com.qf.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data  // 自动生成set get toString 无参构造
@AllArgsConstructor// 给出全参构造,就不会有默认的无参构造
@NoArgsConstructor // 给出无参构造
public class User implements Serializable {
    private int id;
    private String username;
    private String password;
    private String phone;
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date createTime;
    private double money;
    private Integer sex;
}